const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    port:8081,
    proxy:{
      "/api":{
        target:"http://localhost:8080",
        changeOrigin:true,
        pathRewrite:{
          '^/api':''
        }
      },
      "/musicApi":{
        target:"https://music.163.com/api/song",
        changeOrigin:true,
        pathRewrite:{
          '^/musicApi':''
        },
      },
      "/musicIdApi":{
        target:"https://music.liuzhijin.cn",
        changeOrigin:true,
        pathRewrite:{
          '^/musicIdApi':''
        },
      }
    },
  }
})
